package com.himiotech.core.project.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.himiotech.core.framework.helper.anno.MybatisMapper;
import com.himiotech.core.project.model.entity.OperateLog;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 操作日志 数据层
 *
 * @author ruoyi
 * @author wuwenbin
 */
@MybatisMapper
public interface OperateLogMapper extends BaseMapper<OperateLog> {

    /**
     * 查询系统操作日志集合
     *
     * @param operateLog 操作日志对象
     * @return 操作日志集合
     */
    List<OperateLog> selectOperLogList(OperateLog operateLog);


    /**
     * 清空操作日志
     */
    @Update("truncate table sys_operate_log")
    void cleanOperateLog();
}
